/*
 * Filename:    CaseCommonDao.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014-11-21
 */
package com.paic.mhis.hcpms.audit.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.audit.dto.AuditInsuranceInfoDTO;
import com.paic.mhis.hcpms.audit.dto.AuditMedicalInfoDTO;
import com.paic.mhis.hcpms.audit.dto.AuditPointCutTempDTO;
import com.paic.mhis.hcpms.audit.dto.AuditTargetDTO;
import com.paic.mhis.hcpms.audit.dto.AuditiStaffInfoDTO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("caseCommonDao")
public class CaseCommonDao extends BaseDAO {

	public List<AuditPointCutTempDTO> loadAuditPointCutTempDTO(
			AuditPointCutTempDTO bean) {
		List<AuditPointCutTempDTO> list = (List<AuditPointCutTempDTO>) this
				._queryForList("caseCommon.queryAuditPointCutTempDTO", bean);

		return list;
	}

	public void saveAuditPointCutTempDTO(AuditPointCutTempDTO bean) {

		this._insert("caseCommon.insertAuditPointCutTempDTO", bean);

	}

	public void deleteAuditPointCutTempDTO(AuditPointCutTempDTO bean) {
		this._delete("caseCommon.deleteAuditPointCutTempDTO", bean);
	}

	public List<AuditMedicalInfoDTO> queryAuditMedicalInfoDTO(
			AuditMedicalInfoDTO bean) {

		List<AuditMedicalInfoDTO> list = (List<AuditMedicalInfoDTO>) this
				._queryForList("caseCommon.queryMedicalDTO", bean);

		return list;

	}

	public long queryAuditMedicalInfoDTOCount(AuditMedicalInfoDTO bean) {
		long count = this._queryForCount("caseCommon.queryMedicalDTOCount",
				bean);
		return count;
	}

	public List<AuditiStaffInfoDTO> queryAuditiStaffInfoDTO(
			AuditiStaffInfoDTO bean) {
		List<AuditiStaffInfoDTO> list = (List<AuditiStaffInfoDTO>) this
				._queryForList("caseCommon.queryStaffList", bean);

		return list;
	}

	public long queryAuditiStaffInfoDTOCount(AuditiStaffInfoDTO bean) {
		long count = this
				._queryForCount("caseCommon.queryStaffListCount", bean);
		return count;
	}

	public List<AuditInsuranceInfoDTO> queryAuditInsuranceInfoDTO(
			AuditInsuranceInfoDTO bean) {
		List<AuditInsuranceInfoDTO> list = (List<AuditInsuranceInfoDTO>) this
				._queryForList("caseCommon.queryInsuranceDTO", bean);
		return list;

	}

	public long queryAuditInsuranceInfoDTOCount(AuditInsuranceInfoDTO bean) {
		long count = this._queryForCount("caseCommon.queryInsuranceDTOCount",
				bean);
		return count;
	}

	public void deleteAuditTargetInfo(AuditTargetDTO bean) {
		this._delete("caseCommon.deleteAuditTargteInfo", bean);
	}

}
